package nio.netty.mapper;

import nio.netty.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    @Select("select * from user")
    List<User> selectAllUser();
    @Select("select * from user where id =#{id}")
    User selectUser(@Param("id") String id);
    @Select("insert into user (id,pwd) values (#{id},#{pwd})")
    void insertUser(@Param("id") String id, @Param("pwd") String pwd);
}
